import request from '@/utils/request'

export function getList(data) {
  return request({
    url: '/ad/getList',
    method: 'get',
    data,
  })
}

// 获取分组
export function getGrouplist(data) {
  return request({
    url: '/manager/grouplist',
    method: 'get',
    data,
  })
}

//获取所有权限列表
export function getAuthList(data) {
  return request({
    url: '/manager/authlist',
    method: 'get',
    data,
  })
}

export function delmarginIn(data) {
  return request({
    url: '/mando/delmargin',
    method: 'post',
    data,
  })
}

export function addmarginIn(data) {
  return request({
    url: '/mando/addmargin',
    method: 'post',
    data,
  })
}

export function editmarginIn(data) {
  return request({
    url: '/mando/editmargin',
    method: 'post',
    data,
  })
}
